home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
threed.arc
/
THREED.DOC
< prev
next >
Wrap
Text File
|
1986-03-28
|
2KB
|
29 lines
THREEDS.F77 contains routines to generate a 3-D image from a function of
two parameters. The function's values in the range of interest are given
as an array of floating-point numbers. The routines will plot a net formed
by connecting adjacent points. The net's orientation can be specified using
two angles. One angle defines rotation in a plane tangential to the earth's
surface (like an ice skater in a spin). The other angle defines how much the
surface is to be tilted toward the viewer. Parts of the surface that are
hidden are not plotted (i.e. these routines DO implement hidden-line
suppression).
The routines were obtained from a graduate student in chemistry named Hoskins
while I was at the University of North Carolina in 1969-1973 (I have
forgotten his first name). I have only recently aquired the hardware
necessary for the program to operate in a reasonable length of time.
Still, it takes about 15 minutes to draw a 64 by 64 array using a 6Mhz 80286
and a 5Mhz 80287. I would like to eventually convert this code to C and
try to find some way to use fixed-point arithmetic. At that point it
probably will run satisfactorily on a non-x87 equipped machine (of course
a VAX 750 can plot the same 64 x 64 array in 5 minutes but that's of
little help to most people).
I provided two main-line programs (SADDLE.F77 and COSX.F77) to illustrate
the use of THREEDS.F77 by example. Only link one or the other to THREEDS.F77
to generate an executable. Feedback is welcome. I regularly call into
the Astronomer's RBBS at 305-268-8576. I also periodically call into
FARGO RBBS at 701-293-5973 (about every 6-7 weeks).
28-Mar-86 Greg Doty